@base-bg-color: #f5f6f7;
@white: #ffffff;
.time {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  text-align: center;
  height: 50px;
}

//排行版
.news-list {
  .news-item {
    ul {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;

      li {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        flex-wrap: nowrap;
        padding: 10px 10px;
        width: 90%;

        &:hover {
          a {
            color: #2D93CA;
          }
        }

        em {
          width: 25px;
        }

        a {
          width: 90%;
          padding: 0 5px 0 5px;
          white-space: nowrap;
          display: block;
          overflow: hidden;
          text-overflow: ellipsis;
          text-align: left;
          line-height: 20px;
        }

        span {
          width: 25px;
          overflow: hidden;
          display: block;
          text-align: right;
          color: #2D93CA;
        }
      }
    }
  }

}

//标题框
.title-box {
  height: 40px;
  line-height: 40px;
  padding: 0 15px;
  display: flex;
  align-items: center;

  i {
    width: 20px !important;
  }

  a {
    font-size: 15px;
    text-align: center;
  }

}

@tagcolor: #007bff, #28a745, #dc3545, #6c757d, #ffc107, #17a2b8, #343a40;
//标签云
.tag-list {

  ul {
    display: flex;
    flex-wrap: wrap;
    padding: 7px 6px 8px 15px;
    justify-content: space-between;

    li {
      flex-wrap: wrap;
      height: 18px;
      padding: 4px 5px;
      overflow: hidden;
      line-height: 18px;
      border: 1px;
      margin: 3px 5px;
      background-color: #f8F8F8;
      text-align: center;
      border-radius: 2px;

      &:hover {
        background-color: black !important;
        color: @white;
      }

      a {
        overflow: hidden;
        color: @white;
        font-size: 12px;
      }
    }

    each(@tagcolor, .(@k,@v,@i) {
      li:nth-child(7n+@{i}) {
        background-color: @k;
      }
    })
  }
}

//友情链接
.friend-link {
  position: relative;

  i {
    -webkit-transition: transform 0.3s ease-in-out;
    -o-transition: transform 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out;
  }

  .title {
    padding-left: 25px;
    font-size: 15px;
    height: 30px;
    line-height: 30px;
    color: #555666;
    border-bottom: 1px solid #f8f8f8;
  }

  .link-box {
    ul {
      display: flex;
      flex-wrap: wrap;
      align-items: center;

      li {
        width: 10%;
        height: 30px;
        line-height: 30px;

        a {
          padding-left: 25px;
        }
      }
    }
  }

  .link-form {
    padding: 10px 20px;
    border-radius: 0 0 5px 5px;
    display: none;

    .box {
      display: flex;
      justify-content: space-between;

      .form, .info {
        width: 50%;
      }

      .info {
        padding: 10px 20px;

        p, li {
          height: 35px;
          line-height: 35px;
        }
      }

      input {
        border-left: none;
        border-right: none;
        border-top: none;
      }
    }

  }
}

//文章列表
.article {
  .title-box {
    width: unset;
    justify-content: space-between;
    border-bottom: 1px solid #f8f8f8;

    a:last-child {
      display: block;
      font-size: 4px;
    }
  }


}

//单图片
.article-single-img {
  display: flex;
  justify-content: space-around;
  flex-wrap: nowrap;
  height: 150px;
  padding: 18px 20px;
  border-radius: 0 0 8px 8px;

  a {
    display: block;
    overflow: hidden;
  }

  .img-box {
    width: 28%;
    height: 150px;
    position: relative;

    a {
      width: 150px;
      height: 150px;


      &:hover {
        img {
          -webkit-transform: scale(1.1);
          -moz-transform: scale(1.1);
          -o-transform: scale(1.1);
          -ms-transform: scale(1.1);
          transform: scale(1.1);
        }
      }

      img {
        border-radius: 2px;
        object-fit: cover;
        width: 100%;
        height: 100%;
        -webkit-transition: all 0.3s;
        -moz-transition: all 0.3s;
        -o-transition: all 0.3s;
        transition: all 0.3s;
      }
    }
  }

  .content {
    .title,
    .description,
    .article-tag,
    .article-info {
      width: 100%;
      height: 25px;
      line-height: 25px;
      font-size: 18px;
      padding: 0 10px;
    }

    .description {
      padding-top: 20px;
      font-size: 14px;
      height: 80px;
    }

    .article-info {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;

      .column {
        width: 20%;
        display: flex;
        flex-wrap: nowrap;
        justify-content: left;
        height: 25px;

        a {
          font-size: 10px;
          width: 100%;
          height: 25px;
          margin-right: 5px;
          line-height: 25px;
          text-align: center;
          border-radius: 3px;
          background-color: rgba(0, 132, 255, .6);
          color: @white;

          &:hover {
            color: @white;
            background-color: rgba(0, 132, 255, 1);
          }
        }
      }

      .info-list {
        width: 80%;
        height: 25px;
        line-height: 25px;
        font-size: 14px;
        display: flex;
        justify-content: space-between;
      }

    }
  }


}

//多图片
.article-multi-img {
  border-radius: 8px;

  .content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 5px 20px 20px 20px;

    .title,
    .description,
    .article-tag,
    .article-info {
      width: 100%;
      height: 25px;
      line-height: 25px;
      font-size: 18px;
    }

    .img-box {
      display: flex;
      justify-content: space-around;
      padding-bottom: 10px;

      a {
        display: block;
        overflow: hidden;
        border: 3px solid @white;
        width: 250px;
        height: 150px;

        &:hover {
          img {
            -webkit-transform: scale(1.1);
            -moz-transform: scale(1.1);
            -o-transform: scale(1.1);
            -ms-transform: scale(1.1);
            transform: scale(1.1);
          }
        }

        img {
          border-radius: 2px;
          object-fit: cover;
          text-align: center;
          width: 100%;
          height: 100%;
          -webkit-transition: all 0.3s;
          -moz-transition: all 0.3s;
          -o-transition: all 0.3s;
          transition: all 0.3s;
        }
      }
    }

    .description {
      padding-top: 5px;
      font-size: 14px;
      height: 45px;
      line-height: normal;
    }

    .article-info {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;

      .column {
        width: 20%;
        display: flex;
        flex-wrap: nowrap;
        justify-content: left;
        height: 25px;

        a {
          font-size: 10px;
          width: 100%;
          height: 25px;
          margin-right: 5px;
          line-height: 25px;
          text-align: center;
          border-radius: 3px;
          background-color: rgba(0, 132, 255, .6);
          color: @white;

          &:hover {
            color: @white;
            background-color: rgba(0, 132, 255, 1);
          }
        }
      }

      .info-list {
        width: 80%;
        height: 25px;
        line-height: 25px;
        font-size: 14px;
        display: flex;
        justify-content: space-between;
      }

    }


  }


}

//无内容
.null-content {
  text-align: center;
  color: #888888;
  position: relative;
  width: 100%;
  height: 288px;
  border-radius: 8px;

  &:after {
    position: absolute;
    background-repeat: no-repeat;
    background-position: center center;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    content: "空空如也o(╥﹏╥)o";
    display: flex;
    background-image: url(../img/null.png);
    align-items: flex-end;
    justify-content: center;
    font-size: 12px;
    padding-bottom: 15px;
  }
}

//用户头像
.auth {
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;

  .top {
    position: relative;
    display: block;
    padding: 0;
    flex-shrink: 0;

    &:after {
      content: '';
      display: block;
      padding-top: 45%;
    }

    .img-box {
      position: absolute;
      left: 50%;
      top: auto;
      bottom: 0;
      overflow: hidden;
      -webkit-transform: translate(-50%, 50%);
      -ms-transform: translate(-50%, 50%);
      transform: translate(-50%, 50%);
      border: 5px solid #ffffff;
      border-radius: 50%;

      img {
        width: 80px;
        height: 80px;
        -webkit-transition: all 0.3s;
        -moz-transition: all 0.3s;
        -o-transition: all 0.3s;
        transition: all 0.3s;

        &:hover {
          -webkit-transform: scale(1.1);
          -moz-transform: scale(1.1);
          -o-transform: scale(1.1);
          -ms-transform: scale(1.1);
          transform: scale(1.1);
        }
      }
    }

    .auth-bg {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      border: 0;
      background-image: url("../img/3.png");
      background-size: cover;
      background-repeat: no-repeat;
      background-position: 50% 50%;
      background-color: rgba(120, 120, 120, 0.1);
    }
  }

  .bottom {
    padding: 24px;
    margin-top: 32px;
    text-align: center;

    p {
      top: 0;
    }

    p.name {
      display: inline-flex;
      align-items: center;
      margin-bottom: 16px;
      line-height: 18px;
      font-size: 14px;
      height: 18px;

    }

    p.description {
      font-size: 12px;
      color: #888888;
      line-height: 20px;
    }
  }
}
